package vip.sweet.biz.modular.user.params;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.Date;

/**
 * @author ASUS
 * @Date 2025/10/5 22:44
 * @Descripition
 */
@Data
@Schema(description = "业务逻辑购物车项添加参数")
public class BizCartItemsAddParams {
    @Schema(description = "用户ID")
    @NotBlank(message = "用户ID不能为空")
    private String userId;
    @Schema(description = "商品ID")
    @NotBlank(message = "商品ID不能为空")
    private String productId;
    @Schema(description = "商品数量")
    private Integer quantity;
    @Schema(description = "是否选中")
    private Integer selected;
    @Schema(description = "商品规格")
    private String size;
    @Schema(description = "商品颜色")
    private String color;
    @Schema(description = "添加时间")
    private Date addedAt;
}
